<template>
  <NtdModal
    ref="ntdModal"
    title="流程模板引擎"
  >
    <div
      class="page-fs"
      style="height: 500px;"
    >
      <NtdProcess
        :data-form="form"
        :close="close"
      />
    </div>
  </NtdModal>
</template>

<script setup>
import NtdProcess from "@/components/ntd-process/NtdProcess";
import NtdModal from "@/components/ntd-ant-modal/NtdModal";
import {defineProps, ref, defineExpose} from "vue";

const ntdModal = ref()

const props = defineProps({
  form: { type: Object, required: true }
})

const open = () => {
  ntdModal.value.open()
}

const close = () => {
  ntdModal.value.close()
}

defineExpose({open})

</script>

<style scoped>

</style>